/**
 * Handle changed data.
 *
 * @param {Object} oldValue old value
 * @param {Object} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"981B9FC3-458A-4A57-820A-B31D5223A45D"}
 */
function onDataChange_importe(oldValue, newValue, event) {
	if (importe >0)
		{
		importe_referencia=importe;  // 16/04/2012
		totalizar()
		return true
		}
	else
		{
		return false
		}
}

/**
 * @properties={typeid:24,uuid:"DD88320E-93AF-4C5D-A031-4479DCBD0F0F"}
 */
function totalizar() {
	globals.gtotal_detalle=0.00
	for ( var i = 1 ; i <= forms.liquidacion_inicial_ncyd.liq_cabecera_to_liq_detalle_copy.getSize(); i++ )
	{
		forms.liquidacion_inicial_ncyd.liq_cabecera_to_liq_detalle_copy.setSelectedIndex(i)
		//globals.gtotal_detalle+= forms.liquidacion_inicial_ncyd.liq_cabecera_to_liq_detalle_copy.importe
		globals.gtotal_detalle = globals.operacion(globals.gtotal_detalle,"+",forms.liquidacion_inicial_ncyd.liq_cabecera_to_liq_detalle_copy.importe)
	} 
}
